import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { Exclude, Expose, Transform, Type } from 'class-transformer';
import { CommonEntity } from './common.entity';

@Entity('product')
export class ProductEntity extends CommonEntity{
    // 将 int 类型的id转成string类型，防止前端精度缺失

    @PrimaryGeneratedColumn({type:'bigint'})
    id: string

    @Column()
    title: string

    @Column()
    subTitle: string

    @Column()
    goodsSn: string

    @Column()
    cateId: string

    @Column()
    clickCount: string

    @Column()
    goodsNum: string

    @Column()
    shopPrice: string
 
    @Column()
    marketPrice: string

}  